package appcus

import (
	"counter-help/admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type CusOrderFavoriteRouter struct{}

// InitCusOrderFavoriteRouter 初始化 cusOrderFavorite 表的路由信息
func (s *CusOrderFavoriteRouter) InitCusOrderFavoriteRouter(Router *gin.RouterGroup, PublicRouter *gin.RouterGroup) {
	cusOrderFavoriteRouter := Router.Group("appcusOrderFavorite").Use(middleware.OperationRecord())

	{
		cusOrderFavoriteRouter.POST("favoriteCusOrder", CusOrderFavoriteApi.FavoriteCusOrder)                // 收藏订单
		cusOrderFavoriteRouter.DELETE("unfavoriteCusOrder/:orderID", CusOrderFavoriteApi.UnfavoriteCusOrder) // 取消收藏订单
		cusOrderFavoriteRouter.GET("getFavoriteOrders", CusOrderFavoriteApi.GetFavoriteOrders)               // 获取收藏的订单列表
	}

}
